
def outbound_call1():
  """Outbound call DN1 to Ext1Dn, release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_call2():
  """Outbound call DN1 to Ext1Dn, abnormal release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  SipPhone1.ReleaseCall()

def outbound_call3():
  """Outbound call DN1 to Ext1Dn, release Ext1Dn"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  Ext1SipPhone2.ReleaseCall()

def outbound_trans1():
  """DN1 call to DN2, DN2 two step transfer to Ext1DN, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone2.CompleteTransfer()
  SipPhone1.ReleaseCall()

def outbound_trans2():
  """DN1 call to DN2, DN2  tinit  transfer to Ext1DN,  abnormal release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

def outbound_trans3():
  """DN1 call to DN2, DN2 2step transfer to Ext1DN,  completed before cons. party answer, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  SipPhone2.CompleteTransfer()
  Ext1SipPhone2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_conf1():
  """DN1 call to DN2, DN2 conference to Ext1DN, release DN1,DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone2.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def outbound_conf2():
  """DN1 call to DN2, DN2 cinit conference to Ext1DN, abnormal release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(Ext1DN2)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()


